<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>  
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript" src="http://cdn.bootcss.com/jquery/1.10.2/jquery.min.js" ></script>
<script type="text/javascript">
</script>
</head>
<body>
	<table  border="1">
		<tr><td>id</td><td>产品类型</td><td>保费</td><td>状态</td><td>操作</td></tr>
		<c:forEach items="${list}" var="form" varStatus="status">
			<tr>
				<td>${form.id }</td>
				<td>${form.productName }</td>
				<td>${form.premium }</td>
				<td><c:choose>
					    <c:when test="${form.status==0 }">已保存 </c:when>
					    <c:when test="${form.status==1 }">已提交 </c:when>
					    <c:when test="${form.status==2 }">已支付 </c:when>
					    <c:when test="${form.status==6 }">已出单 </c:when>
					</c:choose></td>
				<td><button onclick="doEndor('${form.id}')">批改</button></td>
			</tr>
		</c:forEach>
	</table>
</body>
</html>